/**
 * CC_NC_SearchResult.java
 */
package commands.controller;

import java.util.List;

import dataTypes.File;
import dataTypes.Host;

/**
 * 
 * @author maciek
 *
 */
public class CC_NC_SearchResult extends ControllerCommand
{
	private Host host;
	private List<File> files;
	private int id;
	
	/**
	 * 
	 * @param host host which send this list
	 * @param files list of files
	 */
	public CC_NC_SearchResult(Host host,List<File> files,int id)
	{
		super(ControllerCommandType.NC_SEARCH_RESULT);
		this.host = host;
		this.files = files;
		this.id=id;
	}

	/**
	 * 
	 * @return host that send this list
	 */
	public Host getHost()
	{
		return host;
	}

	/**
	 * 
	 * @return list of files found on host
	 */
	public List<File> getFiles()
	{
		return files;
	}

	/**
	 * 
	 * @return id of search that is connected with these results
	 */
	public int getId()
	{
		return id;
	}

}
